package net.maku.express.biza.consts;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum CollectState {
    NOCOLLECT(0,"未收货"),
    COLLECT(1,"已收货"),
    BOX(2,"已装箱"),
    GOGOODS(3,"档口已出仓"),
    SEAGOODS(4,"海外已入仓");
    private int code;
    private String value;

    public static String getValues(int code){
        for(CollectState collectState:CollectState.values()){
            if(collectState.getCode() == code){
                return collectState.getValue();
            }
        }
        return "";
    }
}
